﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Main.master" AutoEventWireup="true"
    CodeBehind="AdminManager.aspx.cs" Inherits="TrainingsApp.IPADApp.Master.AdminManager" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1" Namespace="DevExpress.Web.ASPxGridView"
    TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .searchTab
        {
            margin-bottom: 10px;
            background-color: #fff;
            border: 2px solid #ccc;
        }
        .searchTab .lab, .searchTab .input
        {
            padding: 8px;
        }
        .searchTab .lab
        {
            padding-left: 20px;
            font-weight: 600;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="0" cellspacing="0" border="0" class="searchTab" width="100%">
        <tr>
            <td class="lab">
                用户名 :
            </td>
            <td class="input">
                <dx:ASPxTextBox ID="txtUserName" runat="server" Width="560" MaxLength="100">
                </dx:ASPxTextBox>
            </td>
            <td class="input"  width="280" align="left">
                <dx:ASPxButton ID="btnSearch" runat="server" Width="120" Height="25" Text="筛选">
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
    <dx:ASPxGridView ID="aspDataSource" Width="100%" runat="server" AutoGenerateColumns="False"
        KeyFieldName="Idx" EnableCallBacks="false" Font-Names="微软雅黑" Font-Size="10" OnRowDeleted="aspDataSource_RowDeleted"
        OnRowDeleting="aspDataSource_RowDeleting" OnRowInserted="aspDataSource_RowInserted"
        OnRowInserting="aspDataSource_RowInserting" OnRowUpdated="aspDataSource_RowUpdated"
        OnRowUpdating="aspDataSource_RowUpdating">
        <Columns>
            <dx:GridViewDataTextColumn VisibleIndex="0" FieldName="UserName" Caption="用户名">
                <PropertiesTextEdit>
                    <ValidationSettings Display="Dynamic">
                        <RequiredField IsRequired="true" ErrorText="请输入用户名" />
                    </ValidationSettings>
                </PropertiesTextEdit>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="2" FieldName="Password" Caption="密码">
                <PropertiesTextEdit>
                    <ValidationSettings Display="Dynamic">
                        <RequiredField IsRequired="true" ErrorText="请输入密码" />
                    </ValidationSettings>
                </PropertiesTextEdit>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="2" FieldName="Name" Caption="姓名">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="4" FieldName="IdentityCard" Caption="身份证">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="5" FieldName="Mobile" Caption="手机">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="5" FieldName="Email" Caption="邮箱">
            </dx:GridViewDataTextColumn>
            <dx:GridViewCommandColumn VisibleIndex="9" Width="230" Caption="操作">
                <EditButton Visible="true">
                </EditButton>
                <NewButton Visible="true">
                </NewButton>
                <DeleteButton Visible="true">
                </DeleteButton>
            </dx:GridViewCommandColumn>
        </Columns>
        <Settings ShowGroupPanel="false" ShowFilterBar="Hidden" ShowFilterRow="false" />
        <SettingsBehavior AllowSort="false" ConfirmDelete="true" />
        <SettingsText ConfirmDelete="是否删除所选记录?" EmptyDataRow="暂时未添加管理员" EmptyHeaders="暂时未添加管理员"
            CommandCancel="取消" CommandDelete="删除" CommandEdit="编辑" CommandNew="新增管理员" CommandUpdate="保存" />
        <SettingsPager PageSize="20">
        </SettingsPager>
        <Settings ShowFilterRow="False" />
    </dx:ASPxGridView>
</asp:Content>
